package com.cwd.arm.domain.repository.impl;

import com.cwd.arm.infrastructure.dao.AuthDao;
import com.cwd.arm.infrastructure.po.AuthPo;
import com.cwd.arm.domain.entity.AuthEntity;
import com.cwd.arm.domain.repository.AuthRepository;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
* Description:权限
* Created on 2021年11月16日
* @author  yan
*/
@Repository
public class AuthRepositoryImpl implements AuthRepository{

    @Autowired
    private AuthDao dao;

    private AuthPo convertToAuthPo(AuthEntity entity){
        AuthPo AuthPo = new AuthPo();
        BeanUtils.copyProperties(entity,AuthPo);
        return AuthPo;
    }

}
